﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.OMM.ConnectionManager.ErrorHandlers
{
    public class QueueExceededLimit : IErrorHandler
    {
        #region IErrorHandleStrategy Members

        public string HandleError(PSE.Framework.Messaging.Msmq msmq, Exception exception)
        {
            StringBuilder error = new StringBuilder();

            error.AppendFormat("Tentou enviar mensagem mas a fila [{0}] MSMQ excedeu o limite de tamanho.", msmq.Path);

            return error.ToString();
        }

        #endregion
    }
}
